Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for nil *Resource #2227

Merged
merged 4 commits into from
Sep 10, 2021
Merged

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Sep 8, 2021

There is a precedent in sdk/resource for allowing a nil resource value. One method did not have such a test, and this adds it (along with some tests).

@codecov
Copy link

codecov bot commented Sep 8, 2021

Codecov Report

Merging #2227 (25a4c4f) into main (9e7812d) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2227   +/-   ##
=====================================
  Coverage   72.3%   72.4%           
=====================================
  Files        168     168           
  Lines      11832   11835    +3     
=====================================
+ Hits        8566    8580   +14     
+ Misses      3030    3021    -9     
+ Partials     236     234    -2     
Impacted Files Coverage Δ
sdk/resource/resource.go 83.7% <100.0%> (+9.5%) ⬆️

@jmacd jmacd added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Sep 9, 2021
@MrAlias MrAlias merged commit 360d130 into open-telemetry:main Sep 10, 2021
@jmacd jmacd deleted the jmacd/resource_nil branch October 1, 2021 07:02
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants